﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.Text;
using Bricks.BaseFramework.Utility;

namespace Bricks.MiuiThemeMaker.MiuiThemeMaker
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {
        /// <summary>
        /// 捕获默认异常
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
        {
            StringBuilder errorMessage = new StringBuilder();
            ExceptionHelper.HandleException(e.Exception);
            e.Handled = true;
        }
    }
}
